#include <stdio.h>
#include <ogcsys.h>
#include "video.h"

void Background_Show(void)
{
	extern char bgData[];

	PNGUPROP imgProp;
	IMGCTX ctx;

	s32 ret;

	/* Select PNG data */
	ctx = PNGU_SelectImageFromBuffer(bgData);
	if (!ctx)
		return;

	/* Get image properties */
	ret = PNGU_GetImageProperties(ctx, &imgProp);
	if (ret != PNGU_OK)
		return;

	/* Draw image */
	Video_DrawPng(ctx, imgProp, 0, 0);

	/* Free image context */
	PNGU_ReleaseImageContext(ctx);
}
